<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateBank extends Migrator
{

    public function up(){
        $table = $this->table('bank',['comment'=>'银行卡种类']);
        $table->addColumn('name','string',['comment'=>'银行卡名'])
              ->addColumn('create_time','integer',['limit'=>10,'default'=>time(),'comment'=>'创建时间'])
              ->create();
    }

    public function down(){
        $this->dropTable('bank');
    }
}
